﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class ControlPanel : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        string text = "账号数量：{0}，已登录：{1}，正在登录：{2}，等待登录：{3}.";
        this.labMessage.Text = string.Format(text
            , Helper.TotalCount
            , Helper.CompletedCount
            , Helper.LoginingCount
            , Helper.WaitingCount);
        this.labRate.Text = string.Format("每秒请求登录数：{0}，最高每秒请求登录数：{1}<br/>每秒完成登录数：{2}，最高每秒完成登录数：{3}",
            Helper.PeerRegisterSecondCount,
            Helper.MaxRegisterPeerSecondCount,
            Helper.PeerCompletedSecondCount,
            Helper.MaxCompletedPeerSecondCount
            );
    }
}